home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / hardlock.arc / HARDUNL.LST < prev   
File List  |  1986-09-20  |  4KB  |  97 lines

  1. Microsoft (R) Macro Assembler  Version 4.00                 9/20/86 19:33:46
  2.  
  3.                                                             Page     1-1
  4.                                                             
  5.  
  6.                              C       include macros.asm 
  7.                              C       .LIST 
  8.                                  
  9.                                      Begincom hardunl 
  10.  0100  E9 0343 R                     jmp   start 
  11.  0103  68 61 72 64 75 6E 6C     msg0     db    'hardunlock Completed Sucessfully',10,13,'$' 
  12.        6F 63 6B 20 43 6F 6D     
  13.        70 6C 65 74 65 64 20     
  14.        53 75 63 65 73 73 66     
  15.        75 6C 6C 79 0A 0D 24     
  16.  0126  68 61 72 64 75 6E 6C     msg1     db    'hardunlock Disk I/O error.',10,13,'$' 
  17.        6F 63 6B 20 44 69 73     
  18.        6B 20 49 2F 4F 20 65     
  19.        72 72 6F 72 2E 0A 0D     
  20.        24                       
  21.                                  
  22.  0143  0200[                    buffer     db    512 dup(?) 
  23.             ??                  
  24.                          ]      
  25.                                 
  26.                                  
  27.  0343                           start     proc  near 
  28.  0343  B8 0201                       mov   ax,0201h        ;read one sector 
  29.  0346  8D 1E 0143 R                  lea   bx,buffer       ;set up read address 
  30.  034A  B9 0001                       mov   cx,1           ;read the partition table 
  31.  034D  BA 0080                       mov   dx,0080h        ;On drive C 
  32.  0350  CD 13                         int   13H           ;execute read 
  33.  0352  72 10                         jc    IO_FAIL           ;if carry - issue message 
  34.  0354  C6 87 01FF AA                 mov   byte ptr [bx+511],0AAh ;repair clobbered partition table 
  35.  0359  B8 0301                       mov   ax,0301h        ;set up write command 
  36.  035C  CD 13                         int   13H 
  37.  035E  8D 16 0103 R                  lea   dx,msg0           ;point to OK message 
  38.  0362  73 04                         jnc   SENDMSG           ;display msg 
  39.  0364  8D 16 0126 R             IO_FAIL: lea   dx,msg1           ;point to failure message 
  40.  0368  B4 09                    SENDMSG: mov   ah,9           ;dos display string 
  41.  036A  CD 21                         int   21h           ;send message 
  42.  036C  CD 20                         int   20h           ;terminate program 
  43.                                 start     endp 
  44.                                      endcom hardunl 
  45.  
  46. Microsoft (R) Macro Assembler  Version 4.00                 9/20/86 19:33:46
  47.  
  48.                                                             Symbols-1
  49.                                                              
  50.  
  51. Macros:
  52.  
  53.         N a m e            Lines
  54.  
  55. @DEX . . . . . . . . . . . . . .         4
  56. @DOS . . . . . . . . . . . . . .         4
  57. @MSG . . . . . . . . . . . . . .        12
  58. @SVC . . . . . . . . . . . . . .         4
  59. BEGINCOM . . . . . . . . . . . .         6
  60. BIOSM  . . . . . . . . . . . . .       132
  61. COMEQ  . . . . . . . . . . . . .        24
  62. DEFS . . . . . . . . . . . . . .         3
  63. ENDCOM . . . . . . . . . . . . .         2
  64. KEYEQ  . . . . . . . . . . . . .        86
  65.  
  66. Segments and Groups:
  67.  
  68.                 N a m e             Size    Align    Combine Class
  69.  
  70. HARDUNL  . . . . . . . . . . . .      036E    PARA    NONE    'CODE'
  71.  
  72. Symbols:            
  73.  
  74.                 N a m e             Type    Value    Attr         
  75.  
  76. BUFFER . . . . . . . . . . . . .      L BYTE     0143    HARDUNL    Length = 0200
  77.  
  78. IO_FAIL  . . . . . . . . . . . .      L NEAR    0364    HARDUNL
  79.  
  80. MSG0 . . . . . . . . . . . . . .      L BYTE     0103    HARDUNL
  81. MSG1 . . . . . . . . . . . . . .      L BYTE     0126    HARDUNL
  82.  
  83. O0O0O0O0 . . . . . . . . . . . .      L NEAR    0100    HARDUNL
  84.  
  85. SENDMSG  . . . . . . . . . . . .      L NEAR    0368    HARDUNL
  86. START  . . . . . . . . . . . . .      N PROC    0343    HARDUNL    Length = 002B
  87.  
  88.  
  89.     384 Source  Lines
  90.     393 Total   Lines
  91.      40 Symbols
  92.  
  93.   49244 Bytes symbol space free
  94.  
  95.       0 Warning Errors
  96.       0 Severe  Errors
  97.